package rjp;

import rjp.map.CachingSantaMap;
import rjp.map.SantaMap;
import rjp.solution.Solution;
import rjp.solver.ReverseSegmentsweepSolver;

public class SweepTest {
	
	public static void main(String[] args) throws Exception {
		SantaMap map = new CachingSantaMap("santa_cities.csv", 20);
		
		for(int i=14; i<1000; i++)
		{
			Solution solution=new Solution(map, "sweeptest"+(i)+".csv");
			//Solution solution=(new OrderedSolver()).solve(map);
			
			ReverseSegmentsweepSolver s=new ReverseSegmentsweepSolver(map,solution);
			s.setMaxImprovements(5000);
			solution=s.solve(map);
			solution.writeToFile("sweeptest"+(i+1)+".csv");
		}

	}

}
